﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace KL.UFrame.Data.Entities
{
    public class AppConfig
    {
        [Key]
        [StringLength(50)]
        public string Key { get; set; }

        [Required]
        [StringLength(50)]
        public string Label { get; set; }

        [Required]
        public string Content { get; set; }


        [Required]
        [StringLength(128)]
        public string CreateId { get; set; }

        [ForeignKey("CreateId")]
        public ApplicationUser CreateUser { get; set; }

        [Required]
        public DateTime CreateTime { get; set; }

        [StringLength(128)]
        public string UpdateId { get; set; }

        [ForeignKey("UpdateId")]
        public ApplicationUser UpdateUser { get; set; }

        public DateTime? UpdateTime { get; set; }
    }
}